[CMake] Link directories

Robert Bielik robert.bielik at xponaut.se
Mon Feb 14 09:45:52 EST 2011


Eric Noulard skrev 2011-02-14 15:42:
>> I seem to be missing something, cause I cannot find a target property for
>> setting additional library directories (for a MSVC project)
>
> Usually you do not specify "additional lib directories" you should
> specify all libs you need with "target_link_libraries".
>

Ok, you mean like:

add_library(dsound SHARED IMPORTED)
set_target_properties(dsound PROPERTIES IMPORTED_LOCATION "${DSOUND_LIBRARY}/dsound.lib")

target_link_libraries(MyTarget dsound)

??
/Rob


More information about the CMake mailing list