## This whole directory exists just so I could define this extra preprocessor value. ADD_DEFINITIONS( -DSimTK_MOLMODEL_BUILDING_STATIC_LIBRARY -DSimTK_USE_STATIC_LIBRARIES) # This is the list of dependencies so we know when to rebuild. ADD_LIBRARY(${STATIC_TARGET} STATIC ${SOURCE_FILES} ${SOURCE_INCLUDE_FILES} ${API_ABS_INCLUDE_FILES}) TARGET_LINK_LIBRARIES(${STATIC_TARGET} debug ${SimTKSIMBODY_STATIC_LIBRARY}_d optimized ${SimTKSIMBODY_STATIC_LIBRARY} debug ${SimTKMATH_STATIC_LIBRARY}_d optimized ${SimTKMATH_STATIC_LIBRARY} debug ${SimTKCPODES_STATIC_LIBRARY}_d optimized ${SimTKCPODES_STATIC_LIBRARY} debug ${SimTKCOMMON_STATIC_LIBRARY}_d optimized ${SimTKCOMMON_STATIC_LIBRARY} ${ADDITIONAL_LINK_LIBRARIES}) SET_TARGET_PROPERTIES(${STATIC_TARGET} PROPERTIES PROJECT_LABEL "Library - ${STATIC_TARGET}") # install the library; on Windows both .lib and .dll go in the lib directory. INSTALL_TARGETS(/lib${LIB64} RUNTIME_DIRECTORY /lib${LIB64} ${STATIC_TARGET})