[DiscordArchive] i think you need to use a different command because that's for including header files?
[DiscordArchive] i think you need to use a different command because that's for including header files?
Archived author: Anchy • Posted: 2022-08-25T02:26:14.752000+00:00
Original source
it wouldnt find my mono otherwise
Archived author: Dav#1067 • Posted: 2022-08-25T02:26:17.244000+00:00
Original source
took me acouple hours to figure out I had to escape spaces in urls
Archived author: Anchy • Posted: 2022-08-25T02:26:28.836000+00:00
Original source
I just surrounded it in quotes initially
Archived author: Dav#1067 • Posted: 2022-08-25T02:26:50.579000+00:00
Original source
dont think it helps in the CMAKE scripts
Archived author: Anchy • Posted: 2022-08-25T02:26:59.094000+00:00
Original source
it did for me
Archived author: Anchy • Posted: 2022-08-25T02:27:02.284000+00:00
Original source
this was my original cmake script
Archived author: Anchy • Posted: 2022-08-25T02:27:05.149000+00:00
Original source
```cmake
SET(MONO_ROOT "C:/Program Files/Mono")
SET(MONO_LOOK_FOR_LIBRARIES TRUE)
SET(MONO_ONLY_LIBRARIES_REQUIRED TRUE)
find_package(Mono REQUIRED)
IF(${MONO_FOUND})
add_library(mono INTERFACE)
set_target_properties(mono PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(mono INTERFACE ${MONO_LIBRARY_DIRS})
target_include_directories(mono INTERFACE ${MONO_INCLUDE_DIRS})
ELSE()
message(FATAL_ERROR "Mono could not be found.")
ENDIF()```
Archived author: Anchy • Posted: 2022-08-25T02:27:36.220000+00:00
Original source
im gonna take a break from this for now though, ill stab at it later
Archived author: Dav#1067 • Posted: 2022-08-25T03:43:28.291000+00:00
Original source
Well the good news. I finally got the dang thing to link and run... The bad news I had to put it into modules/CmakeList.txt to get it to work.
Archived author: Anchy • Posted: 2022-08-25T03:47:28.632000+00:00
Original source
how did you set it up?