Errors after making changes in CMakeLists.txt

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
dhaval
Posts: 7
Joined: Wed, 2005-02-02, 20:15

Errors after making changes in CMakeLists.txt

#1 Post by dhaval »

Hi All,
I am having quite a tough time adding new features to dcmtk..
I am using the ti application. I want to add FLTK (GUI Toolkit) on top of it
for Q/R ..
Well i tried to add the following peice of code to CMake lists.tx in imagectn/apps
********************

INCLUDE(${CMAKE_ROOT}/Modules/FindFLTK.cmake)
IF(HAS_FLTK)
INCLUDE_DIRECTORIES(
${FLTK_INCLUDE_DIR}
)
LINK_LIBRARIES(
${FLTK_LIBRARIES}
)

IF(CYGWIN)
LINK_LIBRARIES( ole32 uuid comctl32 wsock32 supc++ -lm -lgdi32)
ENDIF(CYGWIN)

ENDIF(HAS_FLTK)

INCLUDE_DIRECTORIES(
${Dcmtk_SOURCE_DIR}
${Dcmtk_BINARY_DIR}
)

SET( Dcmtk_GUI_SRCS
dcmtkui.fl
prefsui.fl
)

IF(FLTK_WRAP_UI)
FLTK_WRAP_UI(dcmtk ${Dcmtk_GUI_SRCS})
ENDIF(FLTK_WRAP_UI)

SET(Dcmtk_SRCS
cnf cnfexnt cnfpriv ti tinet tiquery tiui
)

ADD_EXECUTABLE( dcmtk ${Dcmtk_SRCS} )


*************************************

After that , tupe cmake . on the command line.It will ask me to choose the fltk base libraray.
After i have done that , i compile and generate the cmake file.
Then when i type make..
It does not generate the executable but gives errors saying that header files are not found....
any suggestions.
Dhaval

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest