Hello:
I am using cmake for three months now.
but was trouble in a situation 。for details bellow: (in Windows,using Microsoft
Visual Studio 2008)
ADD_LIBRARY(test SHARED ${LIBTEST_SRC} ${LIBHELLO_SRC})
#ADD_LIBRARY(test STATIC ${LIBTEST_SRC} ${LIBHELLO_SRC})
#add executable
AUX_SOURCE_DIRECTORY(. FAN_SRC)
TARGET_LINK_LIBRARIES(fan test)
ADD_EXECUTABLE(fan ${FAN_SRC})
1.if i put "TARGET_LINK_LIBRARIES(fan test)" before ADD_EXECUTABLE command,this
does not work ,why??
2. but if i ADD_LIBRARY(test STATIC ${LIBTEST_SRC} ${LIBHELLO_SRC}) ,it is
ok,why ??
3.if i put "TARGET_LINK_LIBRARIES(fan test)" after ADD_EXECUTABLE command,it
works ,why ??
I am waiting for your help !!
With best wishes.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake