Add htest and knobt targets

This commit is contained in:
Nick Lanham 2012-02-22 17:35:37 +01:00
parent 2944f6762c
commit bb02dfe22e

View File

@ -43,6 +43,7 @@ set_target_properties(drmr_ui PROPERTIES PREFIX "")
target_link_libraries(drmr ${LV2_LIBRARIES} ${SNDFILE_LIBRARIES} ${SAMPLERATE_LIBRARIES} ${EXPAT_LIBRARIES} m) target_link_libraries(drmr ${LV2_LIBRARIES} ${SNDFILE_LIBRARIES} ${SAMPLERATE_LIBRARIES} ${EXPAT_LIBRARIES} m)
target_link_libraries(drmr_ui ${LV2_LIBRARIES} ${GTK2_LIBRARIES} ${SNDFILE_LIBRARIES} ${SAMPLERATE_LIBRARIES} ${EXPAT_LIBRARIES} m) target_link_libraries(drmr_ui ${LV2_LIBRARIES} ${GTK2_LIBRARIES} ${SNDFILE_LIBRARIES} ${SAMPLERATE_LIBRARIES} ${EXPAT_LIBRARIES} m)
add_definitions ( -DPIC ) add_definitions ( -DPIC )
set_target_properties (drmr_ui set_target_properties (drmr_ui
@ -57,6 +58,29 @@ if (NOT USE_NKNOB)
) )
endif (NOT USE_NKNOB) endif (NOT USE_NKNOB)
# Custom test commands
add_executable ( htest
EXCLUDE_FROM_ALL
drmr_hydrogen.c
)
add_executable ( knobt
EXCLUDE_FROM_ALL
nknob.c
)
# config test executables
target_link_libraries(htest ${LV2_LIBRARIES} ${GTK2_LIBRARIES} ${SNDFILE_LIBRARIES} ${SAMPLERATE_LIBRARIES} ${EXPAT_LIBRARIES} m)
set_target_properties ( htest
PROPERTIES
COMPILE_FLAGS "-D_TEST_HYDROGEN_PARSER"
)
target_link_libraries(knobt ${LV2_LIBRARIES} ${GTK2_LIBRARIES} ${SNDFILE_LIBRARIES} ${SAMPLERATE_LIBRARIES} ${EXPAT_LIBRARIES} m)
set_target_properties ( knobt
PROPERTIES
COMPILE_FLAGS "-D_TEST_N_KNOB -DINSTALL_DIR=\\\"${CMAKE_INSTALL_PREFIX}/${LV2_INSTALL_DIR}\\\""
)
# config install # config install
install(TARGETS drmr drmr_ui install(TARGETS drmr drmr_ui
LIBRARY LIBRARY