I have a project having txx file along with source files. I used following CMake configuration
SET(Main Step6.cpp Step6main.cpp Step6RegionGrowing1.cpp Step6RegionGrowing2.cpp moc_Step6.cpp Step6RegionGrowing.txx) SET(MainH Step6.h )
add_executable(${PROJECT_NAME} ${Main} ${MainH} ) target_link_libraries(${PROJECT_NAME} ${ALL_LIBRARIES})
But my sln file is showing txx file in headers and treating it as a text file while comiplation. I checked one cpp is including that txx and when I entered some line just to enter some errors so that I can check if that txx is compiling or not it didn't returned any error. Now my question is
- Why txx is not compiling?
- Why its appearing in header when I am trying to add it as a source?
- Why visual studio treating it as a text file?
- How to compile this project?
Thanks in advance.